<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ChangeSaleRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
			'status'	=> 'bail|required|numeric',
			'goods_id'	=> 'bail|required|numeric',
        ];
    }
    
    public function messages()
	{
		return [
			'status.required'	=> '请选择操作方式',
			'goods_id.required'	=> '请选择操作的商品',
		];
	}
}
